//
//  IAAAuthCheComCCell.h
//  iPadAuditAuthorise
//
//  Created by XiangDongMBP on 16/10/10.
//  Copyright © 2016年 XiangDong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, IAAAuthCheComCCellType) {
    IAAAuthCheComCCellTypeCircle = 0,    //圆角
    IAAAuthCheComCCellTypeRect,          //矩形
    IAAAuthCheComCCellTypeAllScreen,     //全屏
};

@class IAAAuthCheComCCell;
@protocol IAAAuthCheComCCellDelegate <NSObject>
@optional
- (void)IAAAuthCheComCCell:(IAAAuthCheComCCell *)cell cameraBtnTapped:(NSInteger)index;
@end

@class IAAAuthCheckSortItem;
@class IAAAuthCheckDetailModel;
@interface IAAAuthCheComCCell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet UIView *upBgView;
@property (weak, nonatomic) IBOutlet UIImageView *oneImgView;
@property (weak, nonatomic) IBOutlet UILabel *oneLabel;
@property (weak, nonatomic) IBOutlet UIButton *oneCameraBtn;
@property (weak, nonatomic) IBOutlet UIImageView *twoImgView;
@property (weak, nonatomic) IBOutlet UILabel *twoLabel;
@property (weak, nonatomic) IBOutlet UIButton *twoCameraBtn;
@property (weak, nonatomic) IBOutlet UIImageView *threeImgView;
@property (weak, nonatomic) IBOutlet UILabel *threeLabel;
@property (weak, nonatomic) IBOutlet UIButton *threeCameraBtn;
@property (weak, nonatomic) IBOutlet UIImageView *fourImgView;
@property (weak, nonatomic) IBOutlet UILabel *fourLabel;
@property (weak, nonatomic) IBOutlet UIButton *fourCameraBtn;
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;

@property (weak, nonatomic) IBOutlet UILabel *titleUpLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleBottomLabel;
@property (weak, nonatomic) IBOutlet UILabel *idUpLabel;
@property (weak, nonatomic) IBOutlet UILabel *idBottomLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leadingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *trailingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLabelHeightConstraint;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleUpHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleBottomHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *idUpWidthConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *idBottomWidthConstraint;



@property (assign, nonatomic) IAAAuthCheComCCellType type;
@property (strong, nonatomic) IAAAuthCheckSortItem *model;
@property (weak,   nonatomic) id<IAAAuthCheComCCellDelegate>delegate;
- (void)configViewWithData:(IAAAuthCheckDetailModel *)model sortItem:(IAAAuthCheckSortItem *)sortItem type:(IAAAuthCheComCCellType)type;

@end
